using System;
using System.Collections.Generic;
using UnityEngine;

[Serializable]
public class alwaysenabled : MonoBehaviour
{
	public Transform topContainer;

	private List<GameObject> tops;

	public alwaysenabled()
	{
		tops = new List<GameObject>();
	}

	public void Start()
	{
		int childCount = topContainer.childCount;
		for (int i = 0; i < childCount; i++)
		{
			tops.Add(topContainer.GetChild(i).gameObject);
		}
		InvokeRepeating("enable", 0f, 0.5f);
	}

	public void enable()
	{
		for (int i = 0; i < tops.Count; i++)
		{
			tops[i].active = true;
		}
	}

	public void Main()
	{
	}
}
